package com.example.service;

import com.example.service.impl.HelloRemoteHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "eureka-producer", fallback = HelloRemoteHystrix.class)
@Component
public interface HelloRemote {
    @GetMapping("/hello/")
    String hello(@RequestParam("name") String name);
}
